<template>

		<div class="mui-numbox" data-numbox-min='1' style="height: 25px; ">
			<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
			<input id="test" class="mui-input-numbox" type="number" :value="count" @change="getCount1" ref="c" readonly="readonly"/>
			<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
		</div>

</template>

<script>
	import mui from '../../mui/js/mui.min.js'
	export default{
		mounted() {
			mui(".mui-numbox").numbox()
			// console.log(this.max)
		},
		methods:{
			getCount1(){
				var count1 = this.$refs.c.value
				var goods={id:this.id,count:parseInt(count1)}
				this.$store.commit('updataCar',goods)
			}
		},
		props:['count','id']
		
	}
</script>

<style>
</style>
